﻿namespace System.Collections.Generic
{
    static public class EnumerableExtensions
    {
        #region Static public methods

        static public void ForEach<T>(this IEnumerable<T> collection, Action<T> action)
        {
            foreach (T item in collection)
                action(item);
        }

        static public IEnumerable<T> ToEnumerable<T>(this T value)
        {
            yield return value;
        }

        #endregion
    }
}